<?php

require_once('lib/tariff.php');
require_once('lib/content.php');

$content = content_get_by_id('tarifs');

echo '<h2>'.$content['title'].'</h2>';
?>

<table class="table-contain">
	<tr>
		<th>Libellé</th>
		<th>Montant</th>
	</tr>

<?php
$tarrifs = tariff_get_list();

while ($row = mysql_fetch_assoc($tarrifs)) {
	$price = sprintf('%0.2f €', $row['price']);
	echo '
	<tr>
		<td>'.$row['label'].'</td>
		<td>'.$price.'</td>
	</tr>';
}
?>
</table>

<?php

echo html_entity_decode($content['text']);

